import * as THREE from "three";
import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader.js";

const model = new THREE.Group();
const manager = new THREE.LoadingManager();
const loader = new GLTFLoader(manager);
//提取罐

loader.load('/3D/test/worker1.glb', (gltf) => {
    //提取罐
    // Load the model
    const scene = gltf.scene;
    model.add(scene);
    
},
    (xhr) => {
        // console.log((xhr.loaded / xhr.total * 100) + '% loaded');
    },
    (error) => {
        console.error('An error occurred:', error);
    });

export default model;
